package com.yx.louti.globalException.enums;

public enum HttpResultCode {

  /* 成功状态码 */
  SUCCESS(20000, "成功"),
  /* 参数错误 */
  PARAM_IS_INVALID(1001, "参数错误"),
  /* 用户错误 2001-2999*/
  USER_NOTLOGGED_IN(2001, "用户未登录"),
  SIGN_FAIL(2002, "参数签名错误"),
  SYSTEM_ERROR(10000, "系统异常，请稍后重试");

  private Integer code;
  private String message;

  private HttpResultCode(Integer code, String message) {
    this.code = code;
    this.message = message;
  }

  public Integer code() {
    return this.code;
  }
  public String message() {
    return this.message;
  }
}
